package com.szqhyxj.youxiangju.biz.realNameAuth.bankcard;

import android.content.Context;

import com.szqhyxj.youxiangju.PromptView;

import java.io.File;
import java.io.IOException;
import java.util.List;

public interface BankCardAuthContract {

    interface View extends PromptView{

        void previewBank(File photoFile);

        void showBank();

        void showbankCard(CardInfo cardInfo);

        void showUsername(String s);

        void showOCRTip(String s);

        void enshowOCRTip();

        void navToTakePhotoCard(File photoFile);

        void navToGalleryForCard();

        void showOcrFail(String message);

        void showBankCardUploadSuccess(String fileUrl);

        void showBankCardUploadFail(String message);

        void showCardno(String s);

        void showIssuser(List<BankList> bankLists);

        void showAcquiringVerificationCode(int number);

        void showAcquiredVerificationCode();

        void showAcquiredVerificationCodeSuccess();

        void showAcquiredVerificationCodeFail();

        void uploadSuccessCard();

        void commitSuccess();

        void commitFial(String s);

        void showToast(String s);

        void showCommit();

        void showEnCommit();
    }

    interface Presenter {
        void setusername(String s);

        void setbankCardNo(String s);

        void setbtCode(String s);

        void setbtName(String s);

        void setcardPhone(String s);

        void setbankCardPic(String s);

        void setverCode(String s);

        void commint();

        void setPhone(String s);

        void takePhotoForCard(Context context) throws IOException;

        void selectFromGalleryForCard();

        void idcardCardFromTakePhoto(Context context) throws IOException;

        void idcardCardFromGallery(File photoFile);

        void getIssuer();

        void acquireVerificationCode();
        void uploadBankCard();
    }
}